<template>
  <div>
    <!-- banner -->
    <div class="category-banner banner">
      <h1 class="banner-title">我们</h1>
    </div>
    <!-- 分类列表 -->
    <v-card class="blog-container">
      <v-row dense>
        <v-col
          v-for="card in cards"
          :key="card.id"
          :cols="card.flex"
        >
        <v-card :to="card.to" target="_blank">
        <v-img
          :src="card.src"
          class="white--text align-end"
          gradient="to bottom, rgba(0,0,0,.1), rgba(0,0,0,.5)"
          height="200px"
        >
          <v-card-title v-text="card.title"></v-card-title>
        </v-img>
      </v-card>
      </v-col>
      </v-row>
    </v-card>
  </div>
</template>

<script>
export default {
  created() {
  },
  data: function() {
    return {
      cards: [
        { id:1,title: '节日', src: 'http://www.lsc-it.cn/3.jpg', flex: 4 },
        { id:2,title: '时间', src: 'http://www.lsc-it.cn/2.jpg', flex: 4,to:'/we/time' },
        { id:3,title: '回忆', src: 'http://www.lsc-it.cn/2.jpg', flex: 4 },
        { id:4,title: '相册', src: 'http://www.lsc-it.cn/1.jpg', flex: 6,to:'/we/photo' },
        { id:5,title: '回忆', src: 'http://www.lsc-it.cn/2.jpg', flex: 6,to:'/we/recall'},
       
      ],
    };
  },
  methods: {
   
  }
};
</script>

<style scoped>
.category-banner {
  background: url(https://static.talkxj.com/wallhaven-13mk9v.jpg) center
    center / cover no-repeat;
  background-color: #49b1f5;
}
.category-title {
  text-align: center;
  font-size: 36px;
  line-height: 2;
}
@media (max-width: 759px) {
  .category-title {
    font-size: 28px;
  }
}
.category-list {
  margin: 0 1.8rem;
  list-style: none;
}
.category-list-item {
  padding: 8px 1.8rem 8px 0;
}
.category-list-item:before {
  display: inline-block;
  position: relative;
  left: -0.75rem;
  width: 12px;
  height: 12px;
  border: 0.2rem solid #49b1f5;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition-duration: 0.3s;
}
.category-list-item:hover:before {
  border: 0.2rem solid #ff7242;
}
.category-list-item a:hover {
  transition: all 0.3s;
  color: #8e8cd8;
}
.category-list-item a:not(:hover) {
  transition: all 0.3s;
}
.category-count {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: #858585;
}
</style>
